package com.example.app.api;

import com.example.app.entity.LoginRequest;
import com.example.app.entity.LoginResponse;
import com.example.app.entity.RegisterRequest;
import com.example.app.entity.UserProfile;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface LoginService {
    @POST("api/login")
    Call<LoginResponse> login(@Body LoginRequest request);

    @POST("api/register")
    Call<ResponseBody> register(@Body RegisterRequest request);

    @GET("/api/profile")
    Call<UserProfile> getProfile();
}
